﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Platformer
{
    public class Ganker : Enemy
    {
        public Ganker(PlatformerGame game, Vector2 position)
            : base(game, position)
        {
            texture = game.Content.Load<Texture2D>("Enemy/ganker");
            speed = 5.0f;
            size = new Point(texture.Width, texture.Height);
            health = 100;
            UpdateRectangle();
        }

        public override void Update()
        {
            UpdateRectangle();
            Move();

        }

        /* Custom Functions */

        void Move()
        {
            position.X += speed;
        }

    }
}
